const path = require('path');

module.exports = {
    // entry: {
    //     'css-style': path.join(__dirname, 'index.css'),
    //     'stylus-style': path.join(__dirname, 'index.styl')
    // },// 多入口
    entry: path.join(__dirname,'index.js'),// 单入口
    output: {
        path: path.join(__dirname, 'dist'),
        filename: 'style.js',
    },
    mode: "production",
    module: {
        rules: [{
            test: /\.css$/,
            use: ['style-loader', 'css-loader']
        }, {
            test: /\.styl$/,
            use: ['style-loader', 'css-loader', 'stylus-loader']
        }]
    }
};